using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerStateMachine
{
    public PlayerState CurrentState {  get; private set; }

    public void Initialize(PlayerState _state)
    {
        CurrentState = _state;
        CurrentState.Enter();
    }

    public void ChangeState(PlayerState _newstate)
    {
        CurrentState.Exit();
        CurrentState = _newstate;
        CurrentState.Enter();
    }
}
